400
Can I change the format of date to be shown in the control

local oList,var_Column,var_Column1,var_Column2,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
var_Columns = oList.Columns
	var_Columns.Add("Default")
	var_Column = var_Columns.Add("Format.1")
		var_Column.ComputedField = "%0"
		var_Column.FormatColumn = "dateF(value) replace `/` with `-`"
	var_Column1 = var_Columns.Add("Format.2")
		var_Column1.ComputedField = "%0"
		// var_Column1.Def(17) = 1
		with (oList)
			TemplateDef = [dim var_Column1]
			TemplateDef = var_Column1
			Template = [var_Column1.Def(17) = 1]
		endwith
		var_Column1.FormatColumn = "`<b>`+ shortdate(value) + `</b> ` + timeF(value)"
	var_Column2 = var_Columns.Add("Format.3")
		var_Column2.ComputedField = "%0"
		// var_Column2.Def(17) = 1
		with (oList)
			TemplateDef = [dim var_Column2]
			TemplateDef = var_Column2
			Template = [var_Column2.Def(17) = 1]
		endwith
		var_Column2.FormatColumn = "( dateF(value) replace `/` with `-` ) + ` <b>`+ ( weekday(value) case ( 0 : `Su`; 1 : `Mo`; 2 : `Tu`; 3 : `We`; 4 : `Th`; 5 : `Fr`; 6 : `Sa`) )"
var_Items = oList.Items
	var_Items.Add("01/01/2001 10:00:00")
	var_Items.Add("01/02/2001 10:00:00")

399
How can I put a picture on the cell's background (method 3)

local i,oList,var_Column,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oList.VisualAppearance.Add(2,"CP:1 0 0 -164 0")
var_Columns = oList.Columns
	var_Columns.Add("column")
	var_Column = var_Columns.Add("column")
		var_Column.Alignment = 1
		var_Column.HeaderAlignment = 1
var_Items = oList.Items
	i = var_Items.Add()
	// var_Items.SelectableItem(i) = false
	with (oList)
		TemplateDef = [dim var_Items,i]
		TemplateDef = var_Items
		TemplateDef = i
		Template = [var_Items.SelectableItem(i) = False]
	endwith
	// var_Items.Caption(i,1) = "caption"
	with (oList)
		TemplateDef = [dim var_Items,i]
		TemplateDef = var_Items
		TemplateDef = i
		Template = [var_Items.Caption(i,1) = "caption"]
	endwith
	// var_Items.CellBackColor(i,1) = 0x2000000
	with (oList)
		TemplateDef = [dim var_Items,i]
		TemplateDef = var_Items
		TemplateDef = i
		Template = [var_Items.CellBackColor(i,1) = 33554432]
	endwith

398
How can I put a picture on the cell's background (method 2)

local i,oList,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
var_Columns = oList.Columns
	var_Columns.Add("column")
	var_Columns.Add("column")
var_Items = oList.Items
	i = var_Items.Add()
	// var_Items.SelectableItem(i) = false
	with (oList)
		TemplateDef = [dim var_Items,i]
		TemplateDef = var_Items
		TemplateDef = i
		Template = [var_Items.SelectableItem(i) = False]
	endwith
	// var_Items.Caption(i,1) = "caption"
	with (oList)
		TemplateDef = [dim var_Items,i]
		TemplateDef = var_Items
		TemplateDef = i
		Template = [var_Items.Caption(i,1) = "caption"]
	endwith
	// var_Items.CellBackColor(i,1) = 0x1000000
	with (oList)
		TemplateDef = [dim var_Items,i]
		TemplateDef = var_Items
		TemplateDef = i
		Template = [var_Items.CellBackColor(i,1) = 16777216]
	endwith
	// var_Items.CellPicture(i,1) = oList.ExecuteTemplate("loadpicture(`c:\exontrol\images\auction.gif`)")
	with (oList)
		TemplateDef = [dim var_Items,i]
		TemplateDef = var_Items
		TemplateDef = i
		Template = [var_Items.CellPicture(i,1) = Me.ExecuteTemplate("loadpicture(`c:\exontrol\images\auction.gif`)")]
	endwith
	// var_Items.CellPictureWidth(i,1) = 128
	with (oList)
		TemplateDef = [dim var_Items,i]
		TemplateDef = var_Items
		TemplateDef = i
		Template = [var_Items.CellPictureWidth(i,1) = 128]
	endwith
	// var_Items.CellPictureHeight(i,1) = oList.DefaultItemHeight
	with (oList)
		TemplateDef = [dim var_Items,i]
		TemplateDef = var_Items
		TemplateDef = i
		Template = [var_Items.CellPictureHeight(i,1) = Me.DefaultItemHeight]
	endwith

397
How can I put a picture on the cell's background (method 1)

local i,oList,var_Column,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
var_Columns = oList.Columns
	var_Columns.Add("column")
	var_Column = var_Columns.Add("column")
		var_Column.Alignment = 1
		var_Column.HeaderAlignment = 1
var_Items = oList.Items
	i = var_Items.Add()
	// var_Items.SelectableItem(i) = false
	with (oList)
		TemplateDef = [dim var_Items,i]
		TemplateDef = var_Items
		TemplateDef = i
		Template = [var_Items.SelectableItem(i) = False]
	endwith
	// var_Items.Caption(i,1) = "caption"
	with (oList)
		TemplateDef = [dim var_Items,i]
		TemplateDef = var_Items
		TemplateDef = i
		Template = [var_Items.Caption(i,1) = "caption"]
	endwith
	// var_Items.CellBackColor(i,1) = 0x1000000
	with (oList)
		TemplateDef = [dim var_Items,i]
		TemplateDef = var_Items
		TemplateDef = i
		Template = [var_Items.CellBackColor(i,1) = 16777216]
	endwith

396
How do I access the cells, or how do I get the values in the columns

local h,oList,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
var_Columns = oList.Columns
	var_Columns.Add("C1")
	var_Columns.Add("C2")
	var_Columns.Add("C3")
var_Items = oList.Items
	h = var_Items.Add("Item 1")
	// var_Items.Caption(h,1) = "SubItem 1.1"
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.Caption(h,1) = "SubItem 1.1"]
	endwith
	// var_Items.Caption(h,2) = "SubItem 1.2"
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.Caption(h,2) = "SubItem 1.2"]
	endwith
	? Str(var_Items.Caption(h,2)) 

395
How can I apply the same ConditionalFormat on more than 1(one) column (multiple columns and not on item)

local oList,var_Columns,var_ConditionalFormat,var_ConditionalFormat1,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
var_ConditionalFormat = oList.ConditionalFormats.Add("1","K1")
	var_ConditionalFormat.BackColor = 0xff
	var_ConditionalFormat.ApplyTo = 1 /*0x1 | */
var_ConditionalFormat1 = oList.ConditionalFormats.Add("1","K2")
	var_ConditionalFormat1.BackColor = 0xff
	var_ConditionalFormat1.ApplyTo = 2 /*0x2 | */
oList.MarkSearchColumn = false
oList.DrawGridLines = -2 /*0xfffffffc | exVLines*/
var_Columns = oList.Columns
	var_Columns.Add("Column 1")
	var_Columns.Add("Column 2")
	var_Columns.Add("Column 3")
var_Items = oList.Items
	var_Items.Add()
	var_Items.Add()
	var_Items.Add()
oList.EndUpdate()

394
How can I get the list of items as they are displayed

local oList,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.BackColorAlternate = 0xf0f0f0
oList.Columns.Add("Names")
var_Items = oList.Items
	var_Items.Add("Mantel")
	var_Items.Add("Mechanik")
	var_Items.Add("Motor")
	var_Items.Add("Murks")
	var_Items.Add("Märchen")
	var_Items.Add("Möhren")
	var_Items.Add("Mühle")
oList.Columns.Item(0).SortOrder = 1
oList.EndUpdate()
? Str(oList.GetItems(1)) 

393
Is posible to reduce the size of the picture to be shown in the column's caption

local oList,var_Column,var_Column1

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.Template = [HTMLPicture("pic1") = "c:\exontrol\images\zipdisk.gif"] // oList.HTMLPicture("pic1") = "c:\exontrol\images\zipdisk.gif"
oList.HeaderHeight = 48
// oList.Columns.Add("DefaultSize").HTMLCaption = "Default-Size <img>pic1</img> Picture"
var_Column = oList.Columns.Add("DefaultSize")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.HTMLCaption = "Default-Size <img>pic1</img> Picture"]
endwith
// oList.Columns.Add("CustomSize").HTMLCaption = "Custom-Size <img>pic1:16</img> Picture"
var_Column1 = oList.Columns.Add("CustomSize")
with (oList)
	TemplateDef = [dim var_Column1]
	TemplateDef = var_Column1
	Template = [var_Column1.HTMLCaption = "Custom-Size <img>pic1:16</img> Picture"]
endwith
oList.EndUpdate()

392
How can I change the color, font, bold etc for the items/cells in the same column or for the entire column

local oList,var_Column,var_ConditionalFormat,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.MarkSearchColumn = false
var_ConditionalFormat = oList.ConditionalFormats.Add("1")
	var_ConditionalFormat.Bold = true
	var_ConditionalFormat.ForeColor = 0xff
	var_ConditionalFormat.ApplyTo = 1 /*0x1 | */
oList.Columns.Add("C1")
var_Column = oList.Columns.Add("C2")
	var_Column.HeaderBold = true
	var_Column.HTMLCaption = "<fgcolor=FF0000>C2"
var_Items = oList.Items
	// var_Items.Caption(var_Items.Add(10),1) = 11
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.Caption(Add(10),1) = 11]
	endwith
	// var_Items.Caption(var_Items.Add(12),1) = 13
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.Caption(Add(12),1) = 13]
	endwith
oList.EndUpdate()

391
Is it possible to limit the height of item while resizing the row

/*
with (this.EXLISTACTIVEXCONTROL1.nativeObject)
	AddItem = class::nativeObject_AddItem
endwith
*/
// Occurs after a new Item is inserted to Items collection.
function nativeObject_AddItem(Item)
	local var_Items,var_Items1
	oList = form.EXLISTACTIVEXCONTROL1.nativeObject
	// oList.Items.ItemMinHeight(Item) = 18
	var_Items = oList.Items
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.ItemMinHeight(Item) = 18]
	endwith
	// oList.Items.ItemMaxHeight(Item) = 72
	var_Items1 = oList.Items
	with (oList)
		TemplateDef = [dim var_Items1]
		TemplateDef = var_Items1
		Template = [var_Items1.ItemMaxHeight(Item) = 72]
	endwith
return

local oList,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ItemsAllowSizing = -1
oList.ScrollBySingleLine = false
oList.BackColorAlternate = 0xf0f0f0
oList.Columns.Add("Names")
var_Items = oList.Items
	var_Items.Add("Mantel")
	var_Items.Add("Mechanik")
	var_Items.Add("Motor")
	var_Items.Add("Murks")
	var_Items.Add("Märchen")
	var_Items.Add("Möhren")
	var_Items.Add("Mühle")
oList.Columns.Item(0).SortOrder = 1
oList.EndUpdate()

390
Can I specify un-sortable items so they keep their position once the user sorts the columns

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
// oList.Columns.Add("Def").SortType = 1
var_Column = oList.Columns.Add("Def")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.SortType = 1]
endwith
var_Items = oList.Items
	// var_Items.SortableItem(var_Items.Add("Unsortable")) = false
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.SortableItem(Add("Unsortable")) = False]
	endwith
	var_Items.Add(1)
	var_Items.Add(2)
	var_Items.Add(3)

389
The item is not getting selected when clicking the cell's checkbox. What should I do

/*
with (this.EXLISTACTIVEXCONTROL1.nativeObject)
	CellStateChanged = class::nativeObject_CellStateChanged
endwith
*/
// Fired after cell's state is changed.
function nativeObject_CellStateChanged(ItemIndex,ColIndex)
	local var_Items
	oList = form.EXLISTACTIVEXCONTROL1.nativeObject
	// oList.Items.SelectItem(ItemIndex) = true
	var_Items = oList.Items
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.SelectItem(ItemIndex) = True]
	endwith
return

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
// oList.Columns.Add("Check").Def(0) = true
var_Column = oList.Columns.Add("Check")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.Def(0) = True]
endwith
var_Items = oList.Items
	var_Items.Add(0)
	var_Items.Add(1)
	var_Items.Add(2)
	var_Items.Add(3)

388
Does your control supports multiple lines tooltip

local oList,var_Column

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Template = [HTMLPicture("pic1") = "c:\exontrol\images\zipdisk.gif"] // oList.HTMLPicture("pic1") = "c:\exontrol\images\zipdisk.gif"
oList.ToolTipDelay = 1
// oList.Columns.Add("tootip").ToolTip = "<br><font Tahoma;10>This</font> is a <b>multi-lines</b> tooltip assigned to a column. The tooltip supports built-in HTML tags, icons and pictures.<br><br><br><img>pic1</img> picture ... <br><br>"
var_Column = oList.Columns.Add("tootip")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ToolTip = "<br><font Tahoma;10>This</font> is a <b>multi-lines</b> tooltip assigned to a column. The tooltip supports built-in HTML tags, icons and pictures.<br><br><br><img>pic1</img> picture ... <br><br>"]
endwith

387
How can I prevent highlighting the column from the cursor - point

local oList,var_Column,var_Column1,var_Column2,var_Column3,var_Column4,var_Column5,var_Column6,var_Column7

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAEGg4BI0IQAAYAQGKIYBkAKBQAGaAoDDUOQzQwAAxDKKUEwsACEIrjKCYVgOHYYRrIMYgBCMJhLEoaZLhEZRQiqDYtRDFQBSDDcPw/EaRZohGaYJgEgI=")
oList.Template = [Background(32) = 16777216] // oList.Background(32) = 0x1000000
// oList.Columns.Add("S").Width = 32
var_Column = oList.Columns.Add("S")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.Width = 32]
endwith
// oList.Columns.Add("Level 1").LevelKey = 1
var_Column1 = oList.Columns.Add("Level 1")
with (oList)
	TemplateDef = [dim var_Column1]
	TemplateDef = var_Column1
	Template = [var_Column1.LevelKey = 1]
endwith
// oList.Columns.Add("Level 2").LevelKey = 1
var_Column2 = oList.Columns.Add("Level 2")
with (oList)
	TemplateDef = [dim var_Column2]
	TemplateDef = var_Column2
	Template = [var_Column2.LevelKey = 1]
endwith
// oList.Columns.Add("Level 3").LevelKey = 1
var_Column3 = oList.Columns.Add("Level 3")
with (oList)
	TemplateDef = [dim var_Column3]
	TemplateDef = var_Column3
	Template = [var_Column3.LevelKey = 1]
endwith
// oList.Columns.Add("E1").Width = 32
var_Column4 = oList.Columns.Add("E1")
with (oList)
	TemplateDef = [dim var_Column4]
	TemplateDef = var_Column4
	Template = [var_Column4.Width = 32]
endwith
// oList.Columns.Add("E2").Width = 32
var_Column5 = oList.Columns.Add("E2")
with (oList)
	TemplateDef = [dim var_Column5]
	TemplateDef = var_Column5
	Template = [var_Column5.Width = 32]
endwith
// oList.Columns.Add("E3").Width = 32
var_Column6 = oList.Columns.Add("E3")
with (oList)
	TemplateDef = [dim var_Column6]
	TemplateDef = var_Column6
	Template = [var_Column6.Width = 32]
endwith
// oList.Columns.Add("E4").Width = 32
var_Column7 = oList.Columns.Add("E4")
with (oList)
	TemplateDef = [dim var_Column7]
	TemplateDef = var_Column7
	Template = [var_Column7.Width = 32]
endwith

386
Is there any option to show the tooltip programmatically

/*
with (this.EXLISTACTIVEXCONTROL1.nativeObject)
	MouseMove = class::nativeObject_MouseMove
endwith
*/
// Occurs when the user moves the mouse.
function nativeObject_MouseMove(Button,Shift,X,Y)
	oList = form.EXLISTACTIVEXCONTROL1.nativeObject
	oList.ShowToolTip(Str(oList.ItemFromPoint(-1,-1,c,hit)),"","8","8")
return

local oList,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.Columns.Add("Def")
var_Items = oList.Items
	var_Items.Add("Item 1")
	var_Items.Add("Item 2")
	var_Items.Add("Item 3")
oList.EndUpdate()

385
Is it possible to prevent covering the colors by selected rows

local oList,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.SelBackMode = 1
oList.BackColorAlternate = 0xf0f0f0
oList.Columns.Add("Column")
var_Items = oList.Items
	var_Items.Add("Item 1")
	var_Items.Add("Item 2")
	var_Items.Add("Item 3")
	var_Items.Add("Item 4")
	var_Items.Add("Item 5")

384
Can I use PNG images to display pictures in the control

local oList,var_Column

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Template = [HTMLPicture("pic1") = "c:\exontrol\images\card.png"] // oList.HTMLPicture("pic1") = "c:\exontrol\images\card.png"
oList.HeaderHeight = 48
// oList.Columns.Add("ColumnName").HTMLCaption = "<b>HTML</b> Column <img>pic1</img> Picture"
var_Column = oList.Columns.Add("ColumnName")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.HTMLCaption = "<b>HTML</b> Column <img>pic1</img> Picture"]
endwith

383
Does your control support conditional format and computed fields

local h1,oList,var_Column,var_Column1,var_Column2,var_Column3,var_Columns,var_ConditionalFormat,var_ConditionalFormat1,var_ConditionalFormat2,var_ConditionalFormats,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.MarkSearchColumn = false
var_ConditionalFormats = oList.ConditionalFormats
	var_ConditionalFormat = var_ConditionalFormats.Add("%1 >4")
		var_ConditionalFormat.Bold = true
		var_ConditionalFormat.StrikeOut = true
		var_ConditionalFormat.ForeColor = 0xff
		var_ConditionalFormat.ApplyTo = 1 /*0x1 | */
	var_ConditionalFormat1 = var_ConditionalFormats.Add("%2 > 4")
		var_ConditionalFormat1.Bold = true
		var_ConditionalFormat1.StrikeOut = true
		var_ConditionalFormat1.ForeColor = 0xff
		var_ConditionalFormat1.ApplyTo = 2 /*0x2 | */
	var_ConditionalFormat2 = var_ConditionalFormats.Add("%3 > 4")
		var_ConditionalFormat2.Bold = true
		var_ConditionalFormat2.StrikeOut = true
		var_ConditionalFormat2.ForeColor = 0xff
		var_ConditionalFormat2.ApplyTo = 3 /*0x3 | */
var_Columns = oList.Columns
	var_Columns.Add("Name")
	var_Column = var_Columns.Add("A")
		var_Column.SortType = 1
		var_Column.AllowSizing = false
		var_Column.Width = 36
		var_Column.FormatColumn = "len(value) ? value + ' +'"
	var_Column1 = var_Columns.Add("B")
		var_Column1.SortType = 1
		var_Column1.AllowSizing = false
		var_Column1.Width = 36
		var_Column1.FormatColumn = "len(value) ? value + ' +'"
	var_Column2 = var_Columns.Add("C")
		var_Column2.SortType = 1
		var_Column2.AllowSizing = false
		var_Column2.Width = 36
		var_Column2.FormatColumn = "len(value) ? value + ' ='"
	var_Column3 = var_Columns.Add("A+B+C")
		var_Column3.SortType = 1
		var_Column3.AllowSizing = false
		var_Column3.Width = 64
		var_Column3.ComputedField = "%1+%2+%3"
		var_Column3.FormatColumn = "((0:=dbl(value)) < 10? '<fgcolor=808080><font ;7>' :'<b>') + currency(=:0)"
		// var_Column3.Def(17) = 1
		with (oList)
			TemplateDef = [dim var_Column3]
			TemplateDef = var_Column3
			Template = [var_Column3.Def(17) = 1]
		endwith
var_Items = oList.Items
	h1 = var_Items.Add("Item 1")
	// var_Items.Caption(h1,1) = 7
	with (oList)
		TemplateDef = [dim var_Items,h1]
		TemplateDef = var_Items
		TemplateDef = h1
		Template = [var_Items.Caption(h1,1) = 7]
	endwith
	// var_Items.Caption(h1,2) = 3
	with (oList)
		TemplateDef = [dim var_Items,h1]
		TemplateDef = var_Items
		TemplateDef = h1
		Template = [var_Items.Caption(h1,2) = 3]
	endwith
	// var_Items.Caption(h1,3) = 1
	with (oList)
		TemplateDef = [dim var_Items,h1]
		TemplateDef = var_Items
		TemplateDef = h1
		Template = [var_Items.Caption(h1,3) = 1]
	endwith
	h1 = var_Items.Add("Item 2")
	// var_Items.Caption(h1,1) = 2
	with (oList)
		TemplateDef = [dim var_Items,h1]
		TemplateDef = var_Items
		TemplateDef = h1
		Template = [var_Items.Caption(h1,1) = 2]
	endwith
	// var_Items.Caption(h1,2) = 5
	with (oList)
		TemplateDef = [dim var_Items,h1]
		TemplateDef = var_Items
		TemplateDef = h1
		Template = [var_Items.Caption(h1,2) = 5]
	endwith
	// var_Items.Caption(h1,3) = 12
	with (oList)
		TemplateDef = [dim var_Items,h1]
		TemplateDef = var_Items
		TemplateDef = h1
		Template = [var_Items.Caption(h1,3) = 12]
	endwith
	h1 = var_Items.Add("Item 3")
	// var_Items.Caption(h1,1) = 2
	with (oList)
		TemplateDef = [dim var_Items,h1]
		TemplateDef = var_Items
		TemplateDef = h1
		Template = [var_Items.Caption(h1,1) = 2]
	endwith
	// var_Items.Caption(h1,2) = 2
	with (oList)
		TemplateDef = [dim var_Items,h1]
		TemplateDef = var_Items
		TemplateDef = h1
		Template = [var_Items.Caption(h1,2) = 2]
	endwith
	// var_Items.Caption(h1,3) = 4
	with (oList)
		TemplateDef = [dim var_Items,h1]
		TemplateDef = var_Items
		TemplateDef = h1
		Template = [var_Items.Caption(h1,3) = 4]
	endwith
	h1 = var_Items.Add("Item 4")
	// var_Items.Caption(h1,1) = 2
	with (oList)
		TemplateDef = [dim var_Items,h1]
		TemplateDef = var_Items
		TemplateDef = h1
		Template = [var_Items.Caption(h1,1) = 2]
	endwith
	// var_Items.Caption(h1,2) = 9
	with (oList)
		TemplateDef = [dim var_Items,h1]
		TemplateDef = var_Items
		TemplateDef = h1
		Template = [var_Items.Caption(h1,2) = 9]
	endwith
	// var_Items.Caption(h1,3) = 4
	with (oList)
		TemplateDef = [dim var_Items,h1]
		TemplateDef = var_Items
		TemplateDef = h1
		Template = [var_Items.Caption(h1,3) = 4]
	endwith
oList.EndUpdate()

382
Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right

local oList,var_Columns

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ScrollBars = 15
var_Columns = oList.Columns
	var_Columns.Add("C1")
	var_Columns.Add("C2")
	var_Columns.Add("C3")
	var_Columns.Add("C4")
	var_Columns.Add("C5")
	var_Columns.Add("C6")
	var_Columns.Add("C7")
	var_Columns.Add("C8")
oList.RightToLeft = true
oList.EndUpdate()

381
Can I display the cell's check box after the text

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
var_Column = oList.Columns.Add("Column")
	// var_Column.Def(0) = true
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Def(0) = True]
	endwith
	// var_Column.Def(34) = "caption,check"
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Def(34) = "caption,check"]
	endwith
var_Items = oList.Items
	// var_Items.CellHasCheckBox(var_Items.Add("Caption 1"),0) = true
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.CellHasCheckBox(Add("Caption 1"),0) = True]
	endwith
	// var_Items.CellHasCheckBox(var_Items.Add("Caption 2"),0) = true
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.CellHasCheckBox(Add("Caption 2"),0) = True]
	endwith

380
Can I change the order of the parts in the cell, as checkbox after the text, and so on

local h,oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
// oList.Columns.Add("Column").Def(34) = "caption,check,icon,icons,picture"
var_Column = oList.Columns.Add("Column")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.Def(34) = "caption,check,icon,icons,picture"]
endwith
var_Items = oList.Items
	h = var_Items.Add("Text")
	// var_Items.CellImage(h,0) = 1
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.CellImage(h,0) = 1]
	endwith
	// var_Items.CellHasCheckBox(h,0) = true
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.CellHasCheckBox(h,0) = True]
	endwith

379
Can I have an image displayed after the text. Can I get that effect without using HTML content

local h,oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
// oList.Columns.Add("Column").Def(34) = "caption,icon,check,icons,picture"
var_Column = oList.Columns.Add("Column")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.Def(34) = "caption,icon,check,icons,picture"]
endwith
var_Items = oList.Items
	h = var_Items.Add("Text")
	// var_Items.CellImage(h,0) = 1
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.CellImage(h,0) = 1]
	endwith

378
Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right

local oList,var_Columns

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ScrollBars = 15
var_Columns = oList.Columns
	var_Columns.Add("C1")
	var_Columns.Add("C2")
	var_Columns.Add("C3")
	var_Columns.Add("C4")
	var_Columns.Add("C5")
	var_Columns.Add("C6")
	var_Columns.Add("C7")
	var_Columns.Add("C8")
oList.RightToLeft = true
oList.EndUpdate()

377
How can I change the foreground color for a particular column

local oList,var_Column,var_Columns

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
var_Columns = oList.Columns
	var_Columns.Add("Column 1")
	// var_Columns.Add("Column 2").Def(8) = 8439039
	var_Column = var_Columns.Add("Column 2")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Def(8) = 8439039]
	endwith
	var_Columns.Add("Column 3")

376
How can I change the background color for a particular column

local oList,var_Column,var_Columns

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
var_Columns = oList.Columns
	var_Columns.Add("Column 1")
	// var_Columns.Add("Column 2").Def(7) = 8439039
	var_Column = var_Columns.Add("Column 2")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Def(7) = 8439039]
	endwith
	var_Columns.Add("Column 3")

375
How can I display the column using currency format and enlarge the font for certain values

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
var_Column = oList.Columns.Add("Currency")
	// var_Column.Def(17) = 1
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Def(17) = 1]
	endwith
	var_Column.FormatColumn = "len(value) ? ((0:=dbl(value)) < 10 ? '<fgcolor=808080><font ;7>' : '<b>') + currency(=:0)"
var_Items = oList.Items
	var_Items.Add("1.23")
	var_Items.Add("2.34")
	var_Items.Add("9.94")
	var_Items.Add("11.94")
	var_Items.Add("1000")

374
How can I highlight only parts of the cells

local h,oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
var_Column = oList.Columns.Add("")
	// var_Column.Def(17) = 1
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Def(17) = 1]
	endwith
	var_Column.FormatColumn = "value replace 'hil' with '<fgcolor=FF0000><b>hil</b></fgcolor>'"
var_Items = oList.Items
	h = var_Items.Add("Root")
	var_Items.Add("Child 1")
	var_Items.Add("Child 2")
	var_Items.Add("Child 3")

373
How can I get the number of occurrences of a specified string in the cell

local h,oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("")
var_Column = oList.Columns.Add("occurrences")
	var_Column.ComputedField = "lower(%0) count 'o'"
	var_Column.FormatColumn = "'contains ' + value + ' of \'o\' chars'"
var_Items = oList.Items
	h = var_Items.Add("Root")
	var_Items.Add("Child 1 oooof the root")
	var_Items.Add("Child 2")
	var_Items.Add("Child 3")

372
How can I display dates in my format

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
var_Column = oList.Columns.Add("Date")
	// var_Column.Def(17) = 1
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Def(17) = 1]
	endwith
	var_Column.FormatColumn = "'<b>' + year(0:=date(value)) + '</b><fgcolor=808080><font ;6> (' + month(=:0) + ' - ' + day(=:0) +')'"
var_Items = oList.Items
	var_Items.Add("01/21/2001")
	var_Items.Add("02/22/2002")
	var_Items.Add("03/13/2003")
	var_Items.Add("04/24/2004")

371
How can I display dates in short format

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
// oList.Columns.Add("Date").FormatColumn = "shortdate(value)"
var_Column = oList.Columns.Add("Date")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.FormatColumn = "shortdate(value)"]
endwith
var_Items = oList.Items
	var_Items.Add("01/01/2001")
	var_Items.Add("02/02/2002")
	var_Items.Add("03/03/2003")
	var_Items.Add("04/04/2004")

370
How can I display dates in long format

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
// oList.Columns.Add("Date").FormatColumn = "longdate(value)"
var_Column = oList.Columns.Add("Date")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.FormatColumn = "longdate(value)"]
endwith
var_Items = oList.Items
	var_Items.Add("01/01/2001")
	var_Items.Add("02/02/2002")
	var_Items.Add("03/03/2003")
	var_Items.Add("04/04/2004")

369
How can I display only the right part of the cell

local h,oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("")
var_Column = oList.Columns.Add("Right")
	var_Column.ComputedField = "%0 right 2"
	var_Column.FormatColumn = "'" + ["] + "' + value + '" + ["] + "'"
var_Items = oList.Items
	h = var_Items.Add("Root")
	var_Items.Add("Child 1")
	var_Items.Add("Child 2")
	var_Items.Add("SChild 3")

368
How can I display only the left part of the cell

local h,oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("")
// oList.Columns.Add("Left").ComputedField = "%0 left 2"
var_Column = oList.Columns.Add("Left")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "%0 left 2"]
endwith
var_Items = oList.Items
	h = var_Items.Add("Root")
	var_Items.Add("Child 1")
	var_Items.Add("Child 2")
	var_Items.Add("SChild 3")

367
How can I display true or false instead 0 and -1

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
// oList.Columns.Add("Boolean").FormatColumn = "value != 0 ? 'true' : 'false'"
var_Column = oList.Columns.Add("Boolean")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.FormatColumn = "value != 0 ? 'true' : 'false'"]
endwith
var_Items = oList.Items
	var_Items.Add(true)
	var_Items.Add(false)
	var_Items.Add(true)
	var_Items.Add(0)
	var_Items.Add(1)

366
How can I display icons or images instead numbers

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
var_Column = oList.Columns.Add("Icons")
	// var_Column.Def(17) = 1
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Def(17) = 1]
	endwith
	var_Column.FormatColumn = "'The cell displays the icon <img>'+value+'</img> instead ' + value"
var_Items = oList.Items
	var_Items.Add(1)
	var_Items.Add(2)
	var_Items.Add(3)

365
How can I display the column using currency

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
// oList.Columns.Add("Currency").FormatColumn = "currency(dbl(value))"
var_Column = oList.Columns.Add("Currency")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.FormatColumn = "currency(dbl(value))"]
endwith
var_Items = oList.Items
	var_Items.Add("1.23")
	var_Items.Add("2.34")
	var_Items.Add("0")
	var_Items.Add(5)
	var_Items.Add("10000.99")

364
Is is possible to use HTML tags to display in the filter caption

local oList,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.FilterBarPromptVisible = true
oList.FilterBarCaption = "This is a bit of text being displayed in the filter bar."
oList.Columns.Add("")
var_Items = oList.Items
	var_Items.Add("Item 1")
	var_Items.Add("Item 2")
	var_Items.Add("Item 3")
oList.EndUpdate()

363
How can I find the number of items after filtering
local h,oList,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.Columns.Add("")
var_Items = oList.Items
	h = var_Items.Add("")
	// var_Items.Caption(h,0) = var_Items.VisibleItemCount
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.Caption(h,0) = VisibleItemCount]
	endwith
oList.EndUpdate()

362
How can I change the filter caption

local h0,oList,var_Column,var_Column1,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ColumnAutoResize = true
oList.ContinueColumnScroll = false
oList.MarkSearchColumn = false
oList.SearchColumnIndex = 1
oList.FilterBarPromptVisible = true
oList.FilterBarPromptType = 12801 /*exFilterPromptWords | exFilterPromptContainsAll*/
oList.FilterBarPromptPattern = "london robert"
oList.FilterBarCaption = "<r>Found: ... "
var_Columns = oList.Columns
	// var_Columns.Add("Name").Width = 96
	var_Column = var_Columns.Add("Name")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Width = 96]
	endwith
	// var_Columns.Add("Title").Width = 96
	var_Column1 = var_Columns.Add("Title")
	with (oList)
		TemplateDef = [dim var_Column1]
		TemplateDef = var_Column1
		Template = [var_Column1.Width = 96]
	endwith
	var_Columns.Add("City")
var_Items = oList.Items
	h0 = var_Items.Add("Nancy Davolio")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Andrew Fuller")
	// var_Items.Caption(h0,1) = "Vice President, Sales"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Vice President, Sales"]
	endwith
	// var_Items.Caption(h0,2) = "Tacoma"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Tacoma"]
	endwith
	// var_Items.SelectItem(h0) = true
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.SelectItem(h0) = True]
	endwith
	h0 = var_Items.Add("Janet Leverling")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Kirkland"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Kirkland"]
	endwith
	h0 = var_Items.Add("Margaret Peacock")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Redmond"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Redmond"]
	endwith
	h0 = var_Items.Add("Steven Buchanan")
	// var_Items.Caption(h0,1) = "Sales Manager"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Manager"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Michael Suyama")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Robert King")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Laura Callahan")
	// var_Items.Caption(h0,1) = "Inside Sales Coordinator"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Inside Sales Coordinator"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Anne Dodsworth")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
oList.EndUpdate()

361
While using the filter prompt is it is possible to use wild characters

local h0,oList,var_Column,var_Column1,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ColumnAutoResize = true
oList.ContinueColumnScroll = false
oList.MarkSearchColumn = false
oList.SearchColumnIndex = 1
oList.FilterBarPromptVisible = true
oList.FilterBarPromptType = 16
oList.FilterBarPromptPattern = "lon* seat*"
var_Columns = oList.Columns
	// var_Columns.Add("Name").Width = 96
	var_Column = var_Columns.Add("Name")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Width = 96]
	endwith
	// var_Columns.Add("Title").Width = 96
	var_Column1 = var_Columns.Add("Title")
	with (oList)
		TemplateDef = [dim var_Column1]
		TemplateDef = var_Column1
		Template = [var_Column1.Width = 96]
	endwith
	var_Columns.Add("City")
var_Items = oList.Items
	h0 = var_Items.Add("Nancy Davolio")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Andrew Fuller")
	// var_Items.Caption(h0,1) = "Vice President, Sales"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Vice President, Sales"]
	endwith
	// var_Items.Caption(h0,2) = "Tacoma"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Tacoma"]
	endwith
	// var_Items.SelectItem(h0) = true
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.SelectItem(h0) = True]
	endwith
	h0 = var_Items.Add("Janet Leverling")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Kirkland"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Kirkland"]
	endwith
	h0 = var_Items.Add("Margaret Peacock")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Redmond"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Redmond"]
	endwith
	h0 = var_Items.Add("Steven Buchanan")
	// var_Items.Caption(h0,1) = "Sales Manager"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Manager"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Michael Suyama")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Robert King")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Laura Callahan")
	// var_Items.Caption(h0,1) = "Inside Sales Coordinator"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Inside Sales Coordinator"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Anne Dodsworth")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
oList.EndUpdate()

360
How can I list all items that contains any of specified words, not necessary at the beggining

local h0,oList,var_Column,var_Column1,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ColumnAutoResize = true
oList.ContinueColumnScroll = false
oList.MarkSearchColumn = false
oList.SearchColumnIndex = 1
oList.FilterBarPromptVisible = true
oList.FilterBarPromptType = 4610 /*exFilterPromptStartWords | exFilterPromptContainsAny*/
oList.FilterBarPromptPattern = "london davolio"
var_Columns = oList.Columns
	// var_Columns.Add("Name").Width = 96
	var_Column = var_Columns.Add("Name")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Width = 96]
	endwith
	// var_Columns.Add("Title").Width = 96
	var_Column1 = var_Columns.Add("Title")
	with (oList)
		TemplateDef = [dim var_Column1]
		TemplateDef = var_Column1
		Template = [var_Column1.Width = 96]
	endwith
	var_Columns.Add("City")
var_Items = oList.Items
	h0 = var_Items.Add("Nancy Davolio")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Andrew Fuller")
	// var_Items.Caption(h0,1) = "Vice President, Sales"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Vice President, Sales"]
	endwith
	// var_Items.Caption(h0,2) = "Tacoma"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Tacoma"]
	endwith
	// var_Items.SelectItem(h0) = true
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.SelectItem(h0) = True]
	endwith
	h0 = var_Items.Add("Janet Leverling")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Kirkland"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Kirkland"]
	endwith
	h0 = var_Items.Add("Margaret Peacock")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Redmond"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Redmond"]
	endwith
	h0 = var_Items.Add("Steven Buchanan")
	// var_Items.Caption(h0,1) = "Sales Manager"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Manager"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Michael Suyama")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Robert King")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Laura Callahan")
	// var_Items.Caption(h0,1) = "Inside Sales Coordinator"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Inside Sales Coordinator"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Anne Dodsworth")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
oList.EndUpdate()

359
How can I list all items that contains any of specified words, not strings

local h0,oList,var_Column,var_Column1,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ColumnAutoResize = true
oList.ContinueColumnScroll = false
oList.MarkSearchColumn = false
oList.SearchColumnIndex = 1
oList.FilterBarPromptVisible = true
oList.FilterBarPromptType = 12802 /*exFilterPromptWords | exFilterPromptContainsAny*/
oList.FilterBarPromptPattern = "london nancy"
var_Columns = oList.Columns
	// var_Columns.Add("Name").Width = 96
	var_Column = var_Columns.Add("Name")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Width = 96]
	endwith
	// var_Columns.Add("Title").Width = 96
	var_Column1 = var_Columns.Add("Title")
	with (oList)
		TemplateDef = [dim var_Column1]
		TemplateDef = var_Column1
		Template = [var_Column1.Width = 96]
	endwith
	var_Columns.Add("City")
var_Items = oList.Items
	h0 = var_Items.Add("Nancy Davolio")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Andrew Fuller")
	// var_Items.Caption(h0,1) = "Vice President, Sales"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Vice President, Sales"]
	endwith
	// var_Items.Caption(h0,2) = "Tacoma"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Tacoma"]
	endwith
	// var_Items.SelectItem(h0) = true
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.SelectItem(h0) = True]
	endwith
	h0 = var_Items.Add("Janet Leverling")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Kirkland"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Kirkland"]
	endwith
	h0 = var_Items.Add("Margaret Peacock")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Redmond"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Redmond"]
	endwith
	h0 = var_Items.Add("Steven Buchanan")
	// var_Items.Caption(h0,1) = "Sales Manager"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Manager"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Michael Suyama")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Robert King")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Laura Callahan")
	// var_Items.Caption(h0,1) = "Inside Sales Coordinator"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Inside Sales Coordinator"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Anne Dodsworth")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
oList.EndUpdate()

358
How can I list all items that contains all specified words, not strings

local h0,oList,var_Column,var_Column1,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ColumnAutoResize = true
oList.ContinueColumnScroll = false
oList.MarkSearchColumn = false
oList.SearchColumnIndex = 1
oList.FilterBarPromptVisible = true
oList.FilterBarPromptType = 12801 /*exFilterPromptWords | exFilterPromptContainsAll*/
oList.FilterBarPromptPattern = "london robert"
var_Columns = oList.Columns
	// var_Columns.Add("Name").Width = 96
	var_Column = var_Columns.Add("Name")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Width = 96]
	endwith
	// var_Columns.Add("Title").Width = 96
	var_Column1 = var_Columns.Add("Title")
	with (oList)
		TemplateDef = [dim var_Column1]
		TemplateDef = var_Column1
		Template = [var_Column1.Width = 96]
	endwith
	var_Columns.Add("City")
var_Items = oList.Items
	h0 = var_Items.Add("Nancy Davolio")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Andrew Fuller")
	// var_Items.Caption(h0,1) = "Vice President, Sales"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Vice President, Sales"]
	endwith
	// var_Items.Caption(h0,2) = "Tacoma"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Tacoma"]
	endwith
	// var_Items.SelectItem(h0) = true
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.SelectItem(h0) = True]
	endwith
	h0 = var_Items.Add("Janet Leverling")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Kirkland"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Kirkland"]
	endwith
	h0 = var_Items.Add("Margaret Peacock")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Redmond"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Redmond"]
	endwith
	h0 = var_Items.Add("Steven Buchanan")
	// var_Items.Caption(h0,1) = "Sales Manager"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Manager"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Michael Suyama")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Robert King")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Laura Callahan")
	// var_Items.Caption(h0,1) = "Inside Sales Coordinator"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Inside Sales Coordinator"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Anne Dodsworth")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
oList.EndUpdate()

357
I've noticed that the filtering by prompt is not case sensitive, is is possible to make it case sensitive

local h0,oList,var_Column,var_Column1,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ColumnAutoResize = true
oList.ContinueColumnScroll = false
oList.MarkSearchColumn = false
oList.SearchColumnIndex = 1
oList.FilterBarPromptVisible = true
oList.FilterBarPromptType = 258 /*exFilterPromptCaseSensitive | exFilterPromptContainsAny*/
oList.FilterBarPromptPattern = "Anne"
var_Columns = oList.Columns
	// var_Columns.Add("Name").Width = 96
	var_Column = var_Columns.Add("Name")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Width = 96]
	endwith
	// var_Columns.Add("Title").Width = 96
	var_Column1 = var_Columns.Add("Title")
	with (oList)
		TemplateDef = [dim var_Column1]
		TemplateDef = var_Column1
		Template = [var_Column1.Width = 96]
	endwith
	var_Columns.Add("City")
var_Items = oList.Items
	h0 = var_Items.Add("Nancy Davolio")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Andrew Fuller")
	// var_Items.Caption(h0,1) = "Vice President, Sales"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Vice President, Sales"]
	endwith
	// var_Items.Caption(h0,2) = "Tacoma"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Tacoma"]
	endwith
	// var_Items.SelectItem(h0) = true
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.SelectItem(h0) = True]
	endwith
	h0 = var_Items.Add("Janet Leverling")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Kirkland"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Kirkland"]
	endwith
	h0 = var_Items.Add("Margaret Peacock")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Redmond"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Redmond"]
	endwith
	h0 = var_Items.Add("Steven Buchanan")
	// var_Items.Caption(h0,1) = "Sales Manager"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Manager"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Michael Suyama")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Robert King")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Laura Callahan")
	// var_Items.Caption(h0,1) = "Inside Sales Coordinator"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Inside Sales Coordinator"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Anne Dodsworth")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
oList.EndUpdate()

356
Is it possible to list only items that ends with any of specified strings

local h0,oList,var_Column,var_Column1,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ColumnAutoResize = true
oList.ContinueColumnScroll = false
oList.MarkSearchColumn = false
oList.SearchColumnIndex = 1
oList.FilterBarPromptVisible = true
oList.FilterBarPromptType = 4
oList.FilterBarPromptColumns = "0"
oList.FilterBarPromptPattern = "Fuller"
var_Columns = oList.Columns
	// var_Columns.Add("Name").Width = 96
	var_Column = var_Columns.Add("Name")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Width = 96]
	endwith
	// var_Columns.Add("Title").Width = 96
	var_Column1 = var_Columns.Add("Title")
	with (oList)
		TemplateDef = [dim var_Column1]
		TemplateDef = var_Column1
		Template = [var_Column1.Width = 96]
	endwith
	var_Columns.Add("City")
var_Items = oList.Items
	h0 = var_Items.Add("Nancy Davolio")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Andrew Fuller")
	// var_Items.Caption(h0,1) = "Vice President, Sales"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Vice President, Sales"]
	endwith
	// var_Items.Caption(h0,2) = "Tacoma"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Tacoma"]
	endwith
	// var_Items.SelectItem(h0) = true
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.SelectItem(h0) = True]
	endwith
	h0 = var_Items.Add("Janet Leverling")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Kirkland"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Kirkland"]
	endwith
	h0 = var_Items.Add("Margaret Peacock")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Redmond"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Redmond"]
	endwith
	h0 = var_Items.Add("Steven Buchanan")
	// var_Items.Caption(h0,1) = "Sales Manager"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Manager"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Michael Suyama")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Robert King")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Laura Callahan")
	// var_Items.Caption(h0,1) = "Inside Sales Coordinator"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Inside Sales Coordinator"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Anne Dodsworth")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
oList.EndUpdate()

355
Is it possible to list only items that ends with any of specified strings

local h0,oList,var_Column,var_Column1,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ColumnAutoResize = true
oList.ContinueColumnScroll = false
oList.MarkSearchColumn = false
oList.SearchColumnIndex = 1
oList.FilterBarPromptVisible = true
oList.FilterBarPromptType = 4
oList.FilterBarPromptColumns = "0"
oList.FilterBarPromptPattern = "Fuller"
var_Columns = oList.Columns
	// var_Columns.Add("Name").Width = 96
	var_Column = var_Columns.Add("Name")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Width = 96]
	endwith
	// var_Columns.Add("Title").Width = 96
	var_Column1 = var_Columns.Add("Title")
	with (oList)
		TemplateDef = [dim var_Column1]
		TemplateDef = var_Column1
		Template = [var_Column1.Width = 96]
	endwith
	var_Columns.Add("City")
var_Items = oList.Items
	h0 = var_Items.Add("Nancy Davolio")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Andrew Fuller")
	// var_Items.Caption(h0,1) = "Vice President, Sales"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Vice President, Sales"]
	endwith
	// var_Items.Caption(h0,2) = "Tacoma"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Tacoma"]
	endwith
	// var_Items.SelectItem(h0) = true
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.SelectItem(h0) = True]
	endwith
	h0 = var_Items.Add("Janet Leverling")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Kirkland"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Kirkland"]
	endwith
	h0 = var_Items.Add("Margaret Peacock")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Redmond"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Redmond"]
	endwith
	h0 = var_Items.Add("Steven Buchanan")
	// var_Items.Caption(h0,1) = "Sales Manager"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Manager"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Michael Suyama")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Robert King")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Laura Callahan")
	// var_Items.Caption(h0,1) = "Inside Sales Coordinator"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Inside Sales Coordinator"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Anne Dodsworth")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
oList.EndUpdate()

354
Is it possible to list only items that starts with any of specified strings

local h0,oList,var_Column,var_Column1,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ColumnAutoResize = true
oList.ContinueColumnScroll = false
oList.MarkSearchColumn = false
oList.SearchColumnIndex = 1
oList.FilterBarPromptVisible = true
oList.FilterBarPromptType = 3
oList.FilterBarPromptColumns = "0"
oList.FilterBarPromptPattern = "An M"
var_Columns = oList.Columns
	// var_Columns.Add("Name").Width = 96
	var_Column = var_Columns.Add("Name")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Width = 96]
	endwith
	// var_Columns.Add("Title").Width = 96
	var_Column1 = var_Columns.Add("Title")
	with (oList)
		TemplateDef = [dim var_Column1]
		TemplateDef = var_Column1
		Template = [var_Column1.Width = 96]
	endwith
	var_Columns.Add("City")
var_Items = oList.Items
	h0 = var_Items.Add("Nancy Davolio")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Andrew Fuller")
	// var_Items.Caption(h0,1) = "Vice President, Sales"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Vice President, Sales"]
	endwith
	// var_Items.Caption(h0,2) = "Tacoma"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Tacoma"]
	endwith
	// var_Items.SelectItem(h0) = true
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.SelectItem(h0) = True]
	endwith
	h0 = var_Items.Add("Janet Leverling")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Kirkland"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Kirkland"]
	endwith
	h0 = var_Items.Add("Margaret Peacock")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Redmond"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Redmond"]
	endwith
	h0 = var_Items.Add("Steven Buchanan")
	// var_Items.Caption(h0,1) = "Sales Manager"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Manager"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Michael Suyama")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Robert King")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Laura Callahan")
	// var_Items.Caption(h0,1) = "Inside Sales Coordinator"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Inside Sales Coordinator"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Anne Dodsworth")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
oList.EndUpdate()

353
Is it possible to list only items that starts with specified string

local h0,oList,var_Column,var_Column1,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ColumnAutoResize = true
oList.ContinueColumnScroll = false
oList.MarkSearchColumn = false
oList.SearchColumnIndex = 1
oList.FilterBarPromptVisible = true
oList.FilterBarPromptType = 3
oList.FilterBarPromptColumns = "0"
oList.FilterBarPromptPattern = "A"
var_Columns = oList.Columns
	// var_Columns.Add("Name").Width = 96
	var_Column = var_Columns.Add("Name")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Width = 96]
	endwith
	// var_Columns.Add("Title").Width = 96
	var_Column1 = var_Columns.Add("Title")
	with (oList)
		TemplateDef = [dim var_Column1]
		TemplateDef = var_Column1
		Template = [var_Column1.Width = 96]
	endwith
	var_Columns.Add("City")
var_Items = oList.Items
	h0 = var_Items.Add("Nancy Davolio")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Andrew Fuller")
	// var_Items.Caption(h0,1) = "Vice President, Sales"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Vice President, Sales"]
	endwith
	// var_Items.Caption(h0,2) = "Tacoma"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Tacoma"]
	endwith
	// var_Items.SelectItem(h0) = true
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.SelectItem(h0) = True]
	endwith
	h0 = var_Items.Add("Janet Leverling")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Kirkland"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Kirkland"]
	endwith
	h0 = var_Items.Add("Margaret Peacock")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Redmond"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Redmond"]
	endwith
	h0 = var_Items.Add("Steven Buchanan")
	// var_Items.Caption(h0,1) = "Sales Manager"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Manager"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Michael Suyama")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Robert King")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Laura Callahan")
	// var_Items.Caption(h0,1) = "Inside Sales Coordinator"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Inside Sales Coordinator"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Anne Dodsworth")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
oList.EndUpdate()

352
How can I specify that the list should include any of the seqeunces in the pattern

local h0,oList,var_Column,var_Column1,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ColumnAutoResize = true
oList.ContinueColumnScroll = false
oList.MarkSearchColumn = false
oList.SearchColumnIndex = 1
oList.FilterBarPromptVisible = true
oList.FilterBarPromptType = 2
oList.FilterBarPromptPattern = "london seattle"
var_Columns = oList.Columns
	// var_Columns.Add("Name").Width = 96
	var_Column = var_Columns.Add("Name")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Width = 96]
	endwith
	// var_Columns.Add("Title").Width = 96
	var_Column1 = var_Columns.Add("Title")
	with (oList)
		TemplateDef = [dim var_Column1]
		TemplateDef = var_Column1
		Template = [var_Column1.Width = 96]
	endwith
	var_Columns.Add("City")
var_Items = oList.Items
	h0 = var_Items.Add("Nancy Davolio")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Andrew Fuller")
	// var_Items.Caption(h0,1) = "Vice President, Sales"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Vice President, Sales"]
	endwith
	// var_Items.Caption(h0,2) = "Tacoma"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Tacoma"]
	endwith
	// var_Items.SelectItem(h0) = true
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.SelectItem(h0) = True]
	endwith
	h0 = var_Items.Add("Janet Leverling")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Kirkland"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Kirkland"]
	endwith
	h0 = var_Items.Add("Margaret Peacock")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Redmond"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Redmond"]
	endwith
	h0 = var_Items.Add("Steven Buchanan")
	// var_Items.Caption(h0,1) = "Sales Manager"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Manager"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Michael Suyama")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Robert King")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Laura Callahan")
	// var_Items.Caption(h0,1) = "Inside Sales Coordinator"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Inside Sales Coordinator"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Anne Dodsworth")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
oList.EndUpdate()

351
How can I specify that all sequences in the filter pattern must be included in the list

local h0,oList,var_Column,var_Column1,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ColumnAutoResize = true
oList.ContinueColumnScroll = false
oList.MarkSearchColumn = false
oList.SearchColumnIndex = 1
oList.FilterBarPromptVisible = true
oList.FilterBarPromptType = 1
oList.FilterBarPromptPattern = "london manager"
var_Columns = oList.Columns
	// var_Columns.Add("Name").Width = 96
	var_Column = var_Columns.Add("Name")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Width = 96]
	endwith
	// var_Columns.Add("Title").Width = 96
	var_Column1 = var_Columns.Add("Title")
	with (oList)
		TemplateDef = [dim var_Column1]
		TemplateDef = var_Column1
		Template = [var_Column1.Width = 96]
	endwith
	var_Columns.Add("City")
var_Items = oList.Items
	h0 = var_Items.Add("Nancy Davolio")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Andrew Fuller")
	// var_Items.Caption(h0,1) = "Vice President, Sales"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Vice President, Sales"]
	endwith
	// var_Items.Caption(h0,2) = "Tacoma"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Tacoma"]
	endwith
	// var_Items.SelectItem(h0) = true
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.SelectItem(h0) = True]
	endwith
	h0 = var_Items.Add("Janet Leverling")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Kirkland"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Kirkland"]
	endwith
	h0 = var_Items.Add("Margaret Peacock")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Redmond"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Redmond"]
	endwith
	h0 = var_Items.Add("Steven Buchanan")
	// var_Items.Caption(h0,1) = "Sales Manager"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Manager"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Michael Suyama")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Robert King")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Laura Callahan")
	// var_Items.Caption(h0,1) = "Inside Sales Coordinator"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Inside Sales Coordinator"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Anne Dodsworth")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
oList.EndUpdate()

350
How do I change at runtime the filter prompt

local h0,oList,var_Column,var_Column1,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ColumnAutoResize = true
oList.ContinueColumnScroll = false
oList.MarkSearchColumn = false
oList.SearchColumnIndex = 1
oList.FilterBarPromptVisible = true
oList.FilterBarPromptPattern = "london manager"
var_Columns = oList.Columns
	// var_Columns.Add("Name").Width = 96
	var_Column = var_Columns.Add("Name")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Width = 96]
	endwith
	// var_Columns.Add("Title").Width = 96
	var_Column1 = var_Columns.Add("Title")
	with (oList)
		TemplateDef = [dim var_Column1]
		TemplateDef = var_Column1
		Template = [var_Column1.Width = 96]
	endwith
	var_Columns.Add("City")
var_Items = oList.Items
	h0 = var_Items.Add("Nancy Davolio")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Andrew Fuller")
	// var_Items.Caption(h0,1) = "Vice President, Sales"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Vice President, Sales"]
	endwith
	// var_Items.Caption(h0,2) = "Tacoma"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Tacoma"]
	endwith
	// var_Items.SelectItem(h0) = true
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.SelectItem(h0) = True]
	endwith
	h0 = var_Items.Add("Janet Leverling")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Kirkland"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Kirkland"]
	endwith
	h0 = var_Items.Add("Margaret Peacock")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Redmond"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Redmond"]
	endwith
	h0 = var_Items.Add("Steven Buchanan")
	// var_Items.Caption(h0,1) = "Sales Manager"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Manager"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Michael Suyama")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Robert King")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Laura Callahan")
	// var_Items.Caption(h0,1) = "Inside Sales Coordinator"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Inside Sales Coordinator"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Anne Dodsworth")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
oList.EndUpdate()

349
How do I specify to filter only a single column when using the filter prompt

local h0,oList,var_Column,var_Column1,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ColumnAutoResize = true
oList.ContinueColumnScroll = false
oList.MarkSearchColumn = false
oList.SearchColumnIndex = 1
oList.FilterBarPromptVisible = true
oList.FilterBarPromptColumns = "2,3"
oList.FilterBarPromptPattern = "london"
var_Columns = oList.Columns
	// var_Columns.Add("Name").Width = 96
	var_Column = var_Columns.Add("Name")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Width = 96]
	endwith
	// var_Columns.Add("Title").Width = 96
	var_Column1 = var_Columns.Add("Title")
	with (oList)
		TemplateDef = [dim var_Column1]
		TemplateDef = var_Column1
		Template = [var_Column1.Width = 96]
	endwith
	var_Columns.Add("City")
var_Items = oList.Items
	h0 = var_Items.Add("Nancy Davolio")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Andrew Fuller")
	// var_Items.Caption(h0,1) = "Vice President, Sales"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Vice President, Sales"]
	endwith
	// var_Items.Caption(h0,2) = "Tacoma"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Tacoma"]
	endwith
	// var_Items.SelectItem(h0) = true
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.SelectItem(h0) = True]
	endwith
	h0 = var_Items.Add("Janet Leverling")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Kirkland"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Kirkland"]
	endwith
	h0 = var_Items.Add("Margaret Peacock")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Redmond"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Redmond"]
	endwith
	h0 = var_Items.Add("Steven Buchanan")
	// var_Items.Caption(h0,1) = "Sales Manager"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Manager"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Michael Suyama")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Robert King")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Laura Callahan")
	// var_Items.Caption(h0,1) = "Inside Sales Coordinator"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Inside Sales Coordinator"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Anne Dodsworth")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
oList.EndUpdate()

348
How do I change the prompt or the caption being displayed in the filter bar

local oList,var_Column,var_Column1,var_Columns

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ColumnAutoResize = true
oList.ContinueColumnScroll = false
oList.MarkSearchColumn = false
oList.SearchColumnIndex = 1
oList.FilterBarPromptVisible = true
oList.FilterBarPrompt = "changed"
var_Columns = oList.Columns
	// var_Columns.Add("Name").Width = 96
	var_Column = var_Columns.Add("Name")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Width = 96]
	endwith
	// var_Columns.Add("Title").Width = 96
	var_Column1 = var_Columns.Add("Title")
	with (oList)
		TemplateDef = [dim var_Column1]
		TemplateDef = var_Column1
		Template = [var_Column1.Width = 96]
	endwith
	var_Columns.Add("City")
oList.EndUpdate()

347
How do I enable the filter prompt feature

local h0,oList,var_Column,var_Column1,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.ColumnAutoResize = true
oList.ContinueColumnScroll = false
oList.MarkSearchColumn = false
oList.SearchColumnIndex = 1
oList.FilterBarPromptVisible = true
var_Columns = oList.Columns
	// var_Columns.Add("Name").Width = 96
	var_Column = var_Columns.Add("Name")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Width = 96]
	endwith
	// var_Columns.Add("Title").Width = 96
	var_Column1 = var_Columns.Add("Title")
	with (oList)
		TemplateDef = [dim var_Column1]
		TemplateDef = var_Column1
		Template = [var_Column1.Width = 96]
	endwith
	var_Columns.Add("City")
var_Items = oList.Items
	h0 = var_Items.Add("Nancy Davolio")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Andrew Fuller")
	// var_Items.Caption(h0,1) = "Vice President, Sales"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Vice President, Sales"]
	endwith
	// var_Items.Caption(h0,2) = "Tacoma"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Tacoma"]
	endwith
	// var_Items.SelectItem(h0) = true
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.SelectItem(h0) = True]
	endwith
	h0 = var_Items.Add("Janet Leverling")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Kirkland"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Kirkland"]
	endwith
	h0 = var_Items.Add("Margaret Peacock")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "Redmond"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Redmond"]
	endwith
	h0 = var_Items.Add("Steven Buchanan")
	// var_Items.Caption(h0,1) = "Sales Manager"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Manager"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Michael Suyama")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Robert King")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
	h0 = var_Items.Add("Laura Callahan")
	// var_Items.Caption(h0,1) = "Inside Sales Coordinator"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Inside Sales Coordinator"]
	endwith
	// var_Items.Caption(h0,2) = "Seattle"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "Seattle"]
	endwith
	h0 = var_Items.Add("Anne Dodsworth")
	// var_Items.Caption(h0,1) = "Sales Representative"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,1) = "Sales Representative"]
	endwith
	// var_Items.Caption(h0,2) = "London"
	with (oList)
		TemplateDef = [dim var_Items,h0]
		TemplateDef = var_Items
		TemplateDef = h0
		Template = [var_Items.Caption(h0,2) = "London"]
	endwith
oList.EndUpdate()

346
Is it possible to change the style for the vertical or horizontal grid lines, in the list area

local h,oList,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.DrawGridLines = -1
oList.GridLineStyle = 33 /*exGridLinesVSolid | exGridLinesHDot4*/
oList.Columns.Add("C1")
oList.Columns.Add("C2")
oList.Columns.Add("C3")
var_Items = oList.Items
	h = var_Items.Add("Item 1")
	// var_Items.Caption(h,1) = "SubItem 1.2"
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.Caption(h,1) = "SubItem 1.2"]
	endwith
	// var_Items.Caption(h,2) = "SubItem 1.3"
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.Caption(h,2) = "SubItem 1.3"]
	endwith
	h = var_Items.Add("Item 2")
	// var_Items.Caption(h,1) = "SubItem 2.2"
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.Caption(h,1) = "SubItem 2.2"]
	endwith
	// var_Items.Caption(h,2) = "SubItem 2.3"
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.Caption(h,2) = "SubItem 2.3"]
	endwith
oList.EndUpdate()

345
Is it possible to change the style for the grid lines, for instance to be solid not dotted

local oList

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.DrawGridLines = -1
oList.GridLineStyle = 48
oList.Columns.Add("Column")
oList.EndUpdate()

344
How can I filter programatically using more columns

local oList,var_Column,var_Column1,var_Columns,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.MarkSearchColumn = false
var_Columns = oList.Columns
	var_Columns.Add("Car")
	var_Columns.Add("Equipment")
var_Items = oList.Items
	// var_Items.Caption(var_Items.Add("Mazda"),1) = "Air Bag"
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.Caption(Add("Mazda"),1) = "Air Bag"]
	endwith
	// var_Items.Caption(var_Items.Add("Toyota"),1) = "Air Bag,Air condition"
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.Caption(Add("Toyota"),1) = "Air Bag,Air condition"]
	endwith
	// var_Items.Caption(var_Items.Add("Ford"),1) = "Air condition"
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.Caption(Add("Ford"),1) = "Air condition"]
	endwith
	// var_Items.Caption(var_Items.Add("Nissan"),1) = "Air Bag,ABS,ESP"
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.Caption(Add("Nissan"),1) = "Air Bag,ABS,ESP"]
	endwith
	// var_Items.Caption(var_Items.Add("Mazda"),1) = "Air Bag, ABS,ESP"
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.Caption(Add("Mazda"),1) = "Air Bag, ABS,ESP"]
	endwith
	// var_Items.Caption(var_Items.Add("Mazda"),1) = "ABS,ESP"
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.Caption(Add("Mazda"),1) = "ABS,ESP"]
	endwith
var_Column = oList.Columns.Item("Car")
	var_Column.FilterType = 240
	var_Column.Filter = "Mazda"
var_Column1 = oList.Columns.Item("Equipment")
	var_Column1.FilterType = 3
	var_Column1.Filter = "*ABS*|*ESP*"
oList.ApplyFilter()
oList.EndUpdate()

343
How do I find an item based on my extra data

local oList,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Default")
var_Items = oList.Items
	var_Items.Add("Item 1")
	var_Items.Add("Item 2")
	// var_Items.ItemData(var_Items.Add("Item 3")) = 1234
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.ItemData(Add("Item 3")) = 1234]
	endwith
	var_Items.Add("Item 4")
	// var_Items.ItemBold(var_Items.FindItemData(1234)) = true
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.ItemBold(FindItemData(1234)) = True]
	endwith

342
How do I print the control's content

local oList,var_Column,var_Items,var_Print

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.BeginUpdate()
oList.Columns.Add("Number")
// oList.Columns.Add("Currency").ComputedField = "len(%0) ? currency(dbl(%0)) : ''"
var_Column = oList.Columns.Add("Currency")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "len(%0) ? currency(dbl(%0)) : ''"]
endwith
var_Items = oList.Items
	var_Items.Add("1.23")
	var_Items.Add("2.34")
	var_Items.Add("0")
	// var_Items.ItemBackColor(var_Items.Add()) = 0x8080ff
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.ItemBackColor(Add()) = 8421631]
	endwith
	var_Items.Add("10000.99")
oList.EndUpdate()
var_Print = new OleAutoClient("Exontrol.Print")
	var_Print.PrintExt = oList
	var_Print.Preview()

341
How can I display the currency only for not empty cells
local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Number")
// oList.Columns.Add("Currency").ComputedField = "len(%0) ? currency(dbl(%0)) : ''"
var_Column = oList.Columns.Add("Currency")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "len(%0) ? currency(dbl(%0)) : ''"]
endwith
var_Items = oList.Items
	var_Items.Add("1.23")
	var_Items.Add("2.34")
	var_Items.Add("0")
	// var_Items.ItemBackColor(var_Items.Add()) = 0x8080ff
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.ItemBackColor(Add()) = 8421631]
	endwith
	var_Items.Add("10000.99")

340
Is there a function to display the number of days between two date including the number of hours

local h,oList,var_Column,var_Column1,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
// oList.Columns.Add("Start").Width = 32
var_Column = oList.Columns.Add("Start")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.Width = 32]
endwith
oList.Columns.Add("End")
// oList.Columns.Add("Duration").ComputedField = "2:=((1:=int(0:= date(%1)-date(%0))) = 0 ? '' : str(=:1) + ' day(s)') + ( 3:=round(24*(=:0-floor(=:0))) ? (len(=:2) ? ' and ' : '') + =:3 + ' hour(s)' : '' )"
var_Column1 = oList.Columns.Add("Duration")
with (oList)
	TemplateDef = [dim var_Column1]
	TemplateDef = var_Column1
	Template = [var_Column1.ComputedField = "2:=((1:=int(0:= date(%1)-date(%0))) = 0 ? '' : str(=:1) + ' day(s)') + ( 3:=round(24*(=:0-floor(=:0))) ? (len(=:2) ? ' and ' : '') + =:3 + ' hour(s)' : '' )"]
endwith
var_Items = oList.Items
	h = var_Items.Add("01/11/2001")
	// var_Items.Caption(h,1) = "01/14/2001"
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.Caption(h,1) = #1/14/2001#]
	endwith
	h = var_Items.Add("02/22/2002 12:00:00")
	// var_Items.Caption(h,1) = "03/14/2002 13:00:00"
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.Caption(h,1) = #3/14/2002 1:00:00 PM#]
	endwith
	h = var_Items.Add("03/13/2003")
	// var_Items.Caption(h,1) = "04/11/2003 11:00:00"
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.Caption(h,1) = #4/11/2003 11:00:00 AM#]
	endwith

339
Is there a function to display the number of days between two date including the number of hours

local h,oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Start")
oList.Columns.Add("End")
// oList.Columns.Add("Duration").ComputedField = "" + ["] + "D " + ["] + " + int(date(%1)-date(%0)) + " + ["] + " H " + ["] + " + round(24*(date(%1)-date(%0) - floor(date(%1)-date(%0))))"
var_Column = oList.Columns.Add("Duration")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = """D "" + int(date(%1)-date(%0)) + "" H "" + round(24*(date(%1)-date(%0) - floor(date(%1)-date(%0))))"]
endwith
var_Items = oList.Items
	h = var_Items.Add("01/11/2001")
	// var_Items.Caption(h,1) = "01/14/2001 23:00:00"
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.Caption(h,1) = #1/14/2001 11:00:00 PM#]
	endwith
	h = var_Items.Add("02/22/2002 12:00:00")
	// var_Items.Caption(h,1) = "03/14/2002 13:00:00"
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.Caption(h,1) = #3/14/2002 1:00:00 PM#]
	endwith
	h = var_Items.Add("03/13/2003")
	// var_Items.Caption(h,1) = "04/11/2003 11:00:00"
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.Caption(h,1) = #4/11/2003 11:00:00 AM#]
	endwith

338
How can I display the number of days between two dates

local h,oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Start")
oList.Columns.Add("End")
// oList.Columns.Add("Duration").ComputedField = "(date(%1)-date(%0)) + ' days'"
var_Column = oList.Columns.Add("Duration")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "(date(%1)-date(%0)) + ' days'"]
endwith
var_Items = oList.Items
	h = var_Items.Add("01/11/2001")
	// var_Items.Caption(h,1) = "01/14/2001"
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.Caption(h,1) = #1/14/2001#]
	endwith
	h = var_Items.Add("02/22/2002")
	// var_Items.Caption(h,1) = "03/14/2002"
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.Caption(h,1) = #3/14/2002#]
	endwith
	h = var_Items.Add("03/13/2003")
	// var_Items.Caption(h,1) = "04/11/2003"
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.Caption(h,1) = #4/11/2003#]
	endwith

337
How can I get second part of the date

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Date")
// oList.Columns.Add("Second").ComputedField = "sec(date(%0))"
var_Column = oList.Columns.Add("Second")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "sec(date(%0))"]
endwith
var_Items = oList.Items
	var_Items.Add("01/11/2001 10:10:00")
	var_Items.Add("02/22/2002 11:01:22")
	var_Items.Add("03/13/2003 12:23:01")
	var_Items.Add("04/14/2004 13:11:59")

336
How can I get minute part of the date

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Date")
// oList.Columns.Add("Minute").ComputedField = "min(date(%0))"
var_Column = oList.Columns.Add("Minute")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "min(date(%0))"]
endwith
var_Items = oList.Items
	var_Items.Add("01/11/2001 10:10:00")
	var_Items.Add("02/22/2002 11:01:00")
	var_Items.Add("03/13/2003 12:23:00")
	var_Items.Add("04/14/2004 13:11:00")

335
How can I check the hour part only so I know it was afternoon

local oList,var_Column,var_ConditionalFormat,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
// oList.ConditionalFormats.Add("hour(%0)>=12").Bold = true
var_ConditionalFormat = oList.ConditionalFormats.Add("hour(%0)>=12")
with (oList)
	TemplateDef = [dim var_ConditionalFormat]
	TemplateDef = var_ConditionalFormat
	Template = [var_ConditionalFormat.Bold = True]
endwith
oList.Columns.Add("Date")
// oList.Columns.Add("Hour").ComputedField = "hour(%0)"
var_Column = oList.Columns.Add("Hour")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "hour(%0)"]
endwith
var_Items = oList.Items
	var_Items.Add("01/11/2001 10:00:00")
	var_Items.Add("02/22/2002 11:00:00")
	var_Items.Add("03/13/2003 12:00:00")
	var_Items.Add("04/14/2004 13:00:00")

334
What about a function to get the day in the week, or days since Sunday

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Date")
// oList.Columns.Add("WeekDay").ComputedField = "weekday(%0)"
var_Column = oList.Columns.Add("WeekDay")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "weekday(%0)"]
endwith
var_Items = oList.Items
	var_Items.Add("01/11/2001 10:00:00")
	var_Items.Add("02/22/2002 11:00:00")
	var_Items.Add("03/13/2003 12:00:00")
	var_Items.Add("04/14/2004 13:00:00")

333
Is there any function to get the day of the year or number of days since January 1st

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Date")
// oList.Columns.Add("Day since January 1st").ComputedField = "yearday(%0)"
var_Column = oList.Columns.Add("Day since January 1st")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "yearday(%0)"]
endwith
var_Items = oList.Items
	var_Items.Add("01/11/2001 10:00:00")
	var_Items.Add("02/22/2002 11:00:00")
	var_Items.Add("03/13/2003 12:00:00")
	var_Items.Add("04/14/2004 13:00:00")

332
How can I display only the day of the date

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Date")
// oList.Columns.Add("Day").ComputedField = "day(%0)"
var_Column = oList.Columns.Add("Day")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "day(%0)"]
endwith
var_Items = oList.Items
	var_Items.Add("01/11/2001 10:00:00")
	var_Items.Add("02/22/2002 11:00:00")
	var_Items.Add("03/13/2003 12:00:00")
	var_Items.Add("04/14/2004 13:00:00")

331
How can I display only the month of the date

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Date")
// oList.Columns.Add("Month").ComputedField = "month(%0)"
var_Column = oList.Columns.Add("Month")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "month(%0)"]
endwith
var_Items = oList.Items
	var_Items.Add("01/01/2001 10:00:00")
	var_Items.Add("02/02/2002 11:00:00")
	var_Items.Add("03/03/2003 12:00:00")
	var_Items.Add("04/04/2004 13:00:00")

330
How can I get only the year part from a date expression

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Date")
// oList.Columns.Add("Year").ComputedField = "year(%0)"
var_Column = oList.Columns.Add("Year")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "year(%0)"]
endwith
var_Items = oList.Items
	var_Items.Add("01/01/2001 10:00:00")
	var_Items.Add("02/02/2002 11:00:00")
	var_Items.Add("03/03/2003 12:00:00")
	var_Items.Add("04/04/2004 13:00:00")

329
Can I convert the expression to date

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Number")
// oList.Columns.Add("Date").ComputedField = "date(dbl(%0))"
var_Column = oList.Columns.Add("Date")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "date(dbl(%0))"]
endwith
var_Items = oList.Items
	var_Items.Add("-1.98")
	var_Items.Add("30000.99")
	var_Items.Add("3561.23")
	var_Items.Add("1232.34")

328
Can I convert the expression to a number, double or float

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Number")
// oList.Columns.Add("Number + 2").ComputedField = "dbl(%0)+2"
var_Column = oList.Columns.Add("Number + 2")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "dbl(%0)+2"]
endwith
var_Items = oList.Items
	var_Items.Add("-1.98")
	var_Items.Add("0.99")
	var_Items.Add("1.23")
	var_Items.Add("2.34")

327
How can I display dates in long format

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Date")
// oList.Columns.Add("LongFormat").ComputedField = "longdate(%0)"
var_Column = oList.Columns.Add("LongFormat")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "longdate(%0)"]
endwith
var_Items = oList.Items
	var_Items.Add("01/01/2001 10:00:00")
	var_Items.Add("02/02/2002 11:00:00")
	var_Items.Add("03/03/2003 12:00:00")
	var_Items.Add("04/04/2004 13:00:00")

326
How can I display dates in short format

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Date")
// oList.Columns.Add("ShortFormat").ComputedField = "shortdate(%0)"
var_Column = oList.Columns.Add("ShortFormat")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "shortdate(%0)"]
endwith
var_Items = oList.Items
	var_Items.Add("01/01/2001 10:00:00")
	var_Items.Add("02/02/2002 11:00:00")
	var_Items.Add("03/03/2003 12:00:00")
	var_Items.Add("04/04/2004 13:00:00")

325
How can I display the time only of a date expression

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Date")
// oList.Columns.Add("Time").ComputedField = "'time is:' + time(date(%0))"
var_Column = oList.Columns.Add("Time")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "'time is:' + time(date(%0))"]
endwith
var_Items = oList.Items
	var_Items.Add("01/01/2001 10:00:00")
	var_Items.Add("02/02/2002 11:00:00")
	var_Items.Add("03/03/2003 12:00:00")
	var_Items.Add("04/04/2004 13:00:00")

324
Is there any function to display currencies, or money formatted as in the control panel

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Number")
// oList.Columns.Add("Currency").ComputedField = "currency(dbl(%0))"
var_Column = oList.Columns.Add("Currency")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "currency(dbl(%0))"]
endwith
var_Items = oList.Items
	var_Items.Add("1.23")
	var_Items.Add("2.34")
	var_Items.Add("10000.99")

323
How can I convert the expression to a string so I can look into the date string expression for month's name

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Number")
// oList.Columns.Add("Str").ComputedField = "str(%0) + ' AA'"
var_Column = oList.Columns.Add("Str")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "str(%0) + ' AA'"]
endwith
var_Items = oList.Items
	var_Items.Add("-1.98")
	var_Items.Add("0.99")
	var_Items.Add("1.23")
	var_Items.Add("2.34")

322
Can I display the absolute value or positive part of the number

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Number")
// oList.Columns.Add("Abs").ComputedField = "abs(%0)"
var_Column = oList.Columns.Add("Abs")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "abs(%0)"]
endwith
var_Items = oList.Items
	var_Items.Add("-1.98")
	var_Items.Add("0.99")
	var_Items.Add("1.23")
	var_Items.Add("2.34")

321
Is there any function to get largest number with no fraction part that is not greater than the value

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Number")
// oList.Columns.Add("Floor").ComputedField = "floor(%0)"
var_Column = oList.Columns.Add("Floor")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "floor(%0)"]
endwith
var_Items = oList.Items
	var_Items.Add("-1.98")
	var_Items.Add("0.99")
	var_Items.Add("1.23")
	var_Items.Add("2.34")

320
Is there any function to round the values base on the .5 value

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Number")
// oList.Columns.Add("Round").ComputedField = "round(%0)"
var_Column = oList.Columns.Add("Round")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "round(%0)"]
endwith
var_Items = oList.Items
	var_Items.Add("-1.98")
	var_Items.Add("0.99")
	var_Items.Add("1.23")
	var_Items.Add("2.34")

319
How can I get or display the integer part of the cell

local oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Number")
// oList.Columns.Add("Int").ComputedField = "int(%0)"
var_Column = oList.Columns.Add("Int")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "int(%0)"]
endwith
var_Items = oList.Items
	var_Items.Add("-1.98")
	var_Items.Add("0.99")
	var_Items.Add("1.23")
	var_Items.Add("2.34")

318
How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )

local h,oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
// oList.Columns.Add("").ComputedField = "proper(%0)"
var_Column = oList.Columns.Add("")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "proper(%0)"]
endwith
var_Items = oList.Items
	h = var_Items.Add("Item 1")
	var_Items.Add("item item")
	var_Items.Add("item item")
	var_Items.Add("item item")

317
Is there any option to display cells in uppercase

local h,oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
// oList.Columns.Add("").ComputedField = "upper(%0)"
var_Column = oList.Columns.Add("")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "upper(%0)"]
endwith
var_Items = oList.Items
	h = var_Items.Add("Item 1")
	var_Items.Add("Item 2")
	var_Items.Add("Item 3")
	var_Items.Add("Item 4 - child")

316
Is there any option to display cells in lowercase

local h,oList,var_Column,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
// oList.Columns.Add("").ComputedField = "lower(%0)"
var_Column = oList.Columns.Add("")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.ComputedField = "lower(%0)"]
endwith
var_Items = oList.Items
	h = var_Items.Add("Item 1")
	var_Items.Add("Item 2")
	var_Items.Add("Item 3")
	var_Items.Add("Item 4 - child")

315
How can I mark the cells that has a specified type, ie strings only

local h,oList,var_ConditionalFormat,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
// oList.ConditionalFormats.Add("type(%0) = 8").ForeColor = 0xff
var_ConditionalFormat = oList.ConditionalFormats.Add("type(%0) = 8")
with (oList)
	TemplateDef = [dim var_ConditionalFormat]
	TemplateDef = var_ConditionalFormat
	Template = [var_ConditionalFormat.ForeColor = 255]
endwith
oList.Columns.Add("")
var_Items = oList.Items
	h = var_Items.Add("Item 1")
	var_Items.Add("Item 2")
	var_Items.Add(2)
	var_Items.Add("Item 4 - child")

314
How can I bold the items that contains data or those who displays empty strings

local h,hC,oList,var_ConditionalFormat,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
// oList.ConditionalFormats.Add("not len(%1)=0").Bold = true
var_ConditionalFormat = oList.ConditionalFormats.Add("not len(%1)=0")
with (oList)
	TemplateDef = [dim var_ConditionalFormat]
	TemplateDef = var_ConditionalFormat
	Template = [var_ConditionalFormat.Bold = True]
endwith
oList.Columns.Add("C1")
oList.Columns.Add("C2")
var_Items = oList.Items
	h = var_Items.Add("Item 1")
	var_Items.Add("Item 2")
	hC = var_Items.Add("Item 3")
	// var_Items.Caption(hC,1) = "1"
	with (oList)
		TemplateDef = [dim var_Items,hC]
		TemplateDef = var_Items
		TemplateDef = hC
		Template = [var_Items.Caption(hC,1) = "1"]
	endwith
	var_Items.Add("Item 3")

313
Can I change the background color for items or cells that contains a specified string

local oList,var_ConditionalFormat,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
// oList.ConditionalFormats.Add("%0 contains 'hi'").BackColor = 0xff
var_ConditionalFormat = oList.ConditionalFormats.Add("%0 contains 'hi'")
with (oList)
	TemplateDef = [dim var_ConditionalFormat]
	TemplateDef = var_ConditionalFormat
	Template = [var_ConditionalFormat.BackColor = 255]
endwith
oList.Columns.Add("")
var_Items = oList.Items
	var_Items.Add("Item 1")
	var_Items.Add("Item 2")
	var_Items.Add("Item 3")
	var_Items.Add("Item 4 - child")

312
Is there any option to change the fore color for cells or items that ends with a specified string

local oList,var_ConditionalFormat,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
// oList.ConditionalFormats.Add("%0 endwith '22'").ForeColor = 0xff
var_ConditionalFormat = oList.ConditionalFormats.Add("%0 endwith '22'")
with (oList)
	TemplateDef = [dim var_ConditionalFormat]
	TemplateDef = var_ConditionalFormat
	Template = [var_ConditionalFormat.ForeColor = 255]
endwith
oList.Columns.Add("")
var_Items = oList.Items
	var_Items.Add("Item 1")
	var_Items.Add("Item 2")
	var_Items.Add("Item 1.22")
	var_Items.Add("Item 2.22")

311
How can I highlight the cells or items that starts with a specified string

local oList,var_ConditionalFormat,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
// oList.ConditionalFormats.Add("%0 startwith 'C'").Underline = true
var_ConditionalFormat = oList.ConditionalFormats.Add("%0 startwith 'C'")
with (oList)
	TemplateDef = [dim var_ConditionalFormat]
	TemplateDef = var_ConditionalFormat
	Template = [var_ConditionalFormat.Underline = True]
endwith
oList.Columns.Add("")
var_Items = oList.Items
	var_Items.Add("Item 1")
	var_Items.Add("CItem 2")
	var_Items.Add("Item 3")
	var_Items.Add("Item 4")

310
How can I change the foreground color for a particular column

local oList,var_Column,var_Columns

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
var_Columns = oList.Columns
	var_Columns.Add("Column 1")
	// var_Columns.Add("Column 2").Def(8) = 8439039
	var_Column = var_Columns.Add("Column 2")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Def(8) = 8439039]
	endwith
	var_Columns.Add("Column 3")

309
How can I change the background color for a particular column

local oList,var_Column,var_Columns

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
var_Columns = oList.Columns
	var_Columns.Add("Column 1")
	// var_Columns.Add("Column 2").Def(7) = 8439039
	var_Column = var_Columns.Add("Column 2")
	with (oList)
		TemplateDef = [dim var_Column]
		TemplateDef = var_Column
		Template = [var_Column.Def(7) = 8439039]
	endwith
	var_Columns.Add("Column 3")

308
How can I display the column's header using multiple lines

local oList,var_Column

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.HeaderHeight = 128
oList.HeaderSingleLine = false
// oList.Columns.Add("This is just a column that should break the header.").Width = 32
var_Column = oList.Columns.Add("This is just a column that should break the header.")
with (oList)
	TemplateDef = [dim var_Column]
	TemplateDef = var_Column
	Template = [var_Column.Width = 32]
endwith
oList.Columns.Add("This is just another column that should break the header.")

307
How can I align the text/caption on the scroll bar

local oList

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Template = [ScrollPartCaption(1,512) = "left"] // oList.ScrollPartCaption(1,512) = "left"
oList.Template = [ScrollPartCaptionAlignment(1,512) = 0] // oList.ScrollPartCaptionAlignment(1,512) = 0
oList.Template = [ScrollPartCaption(1,128) = "right"] // oList.ScrollPartCaption(1,128) = "right"
oList.Template = [ScrollPartCaptionAlignment(1,128) = 2] // oList.ScrollPartCaptionAlignment(1,128) = 2
oList.ColumnAutoResize = false
oList.Columns.Add(Str(1))
oList.Columns.Add(Str(2))
oList.Columns.Add(Str(3))
oList.Columns.Add(Str(4))
oList.Columns.Add(Str(5))
oList.Columns.Add(Str(6))

306
How do I select the next row/item

local oList,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Column")
var_Items = oList.Items
	var_Items.Add("Item 1")
	var_Items.Add("Item 2")
	var_Items.Add("Item 3")
	// var_Items.SelectItem(var_Items.NextVisibleItem(var_Items.FocusItem)) = true
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.SelectItem(NextVisibleItem(FocusItem)) = True]
	endwith

305
How do I enable resizing ( changing the height ) the items at runtime

local oList,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.ItemsAllowSizing = -1
oList.DrawGridLines = 1
oList.ScrollBySingleLine = true
oList.Columns.Add("Column")
oList.Items.Add("Item 1")
var_Items = oList.Items
	// var_Items.ItemHeight(var_Items.Add("Item 2")) = 48
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.ItemHeight(Add("Item 2")) = 48]
	endwith
oList.Items.Add("Item 3")
oList.Items.Add("Item 4")

304
How do I enable resizing all the items at runtime

local oList,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.ItemsAllowSizing = 1
oList.DrawGridLines = 1
oList.Columns.Add("Column")
oList.Items.Add("Item 1")
var_Items = oList.Items
	// var_Items.ItemHeight(var_Items.Add("Item 2")) = 48
	with (oList)
		TemplateDef = [dim var_Items]
		TemplateDef = var_Items
		Template = [var_Items.ItemHeight(Add("Item 2")) = 48]
	endwith
oList.Items.Add("Item 3")

303
How can I remove the filter

local oList,var_Column

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
var_Column = oList.Columns.Add("Column")
	var_Column.DisplayFilterButton = true
	var_Column.FilterType = 1
oList.ApplyFilter()
oList.ClearFilter()

302
How do I change the control's border, using your EBN files

local oList

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oList.Appearance = 16777216 /*0x1000000 | */

301
Can I change the style for break or divider line

local h,oList,var_Items

oList = form.EXLISTACTIVEXCONTROL1.nativeObject
oList.Columns.Add("Default")
var_Items = oList.Items
	var_Items.Add("Item 1")
	h = var_Items.Add()
	// var_Items.ItemBreak(h) = 2
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.ItemBreak(h) = 2]
	endwith
	// var_Items.SelectableItem(h) = false
	with (oList)
		TemplateDef = [dim var_Items,h]
		TemplateDef = var_Items
		TemplateDef = h
		Template = [var_Items.SelectableItem(h) = False]
	endwith
	var_Items.Add("Item 3")